package com.example.academicsystem.server.controller.admin;

import com.example.academicsystem.result.Result;
import com.example.academicsystem.server.service.AdminService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin/class")
@Slf4j
@Api(tags="admin-class")
public class AdminClassController {
    @Autowired
    private AdminService adminService;

    @ApiOperation("class insert")
    @GetMapping("/insert")
    public Result classInsert(@RequestParam("id") Integer id){
        adminService.classInsert(id);
        return Result.success();
    }

}
